package org.example.demo1.Entity;

import java.util.Date;

public class UserNovel {
    private int id;
    private int user_id;
    private int novel_id;
    private Date collect_time;
    private String group_name;

    // 构造函数
    public UserNovel() {
    }

    public UserNovel(int id, int user_id, int novel_id, Date collect_time, String group_name) {
        this.id = id;
        this.user_id = user_id;
        this.novel_id = novel_id;
        this.collect_time = collect_time;
        this.group_name = group_name;
    }

    // getter和setter方法
    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getUser_id() {
        return user_id;
    }

    public void setUser_id(int user_id) {
        this.user_id = user_id;
    }

    public int getNovel_id() {
        return novel_id;
    }

    public void setNovel_id(int novel_id) {
        this.novel_id = novel_id;
    }

    public Date getCollect_time() {
        return collect_time;
    }

    public void setCollect_time(Date collect_time) {
        this.collect_time = collect_time;
    }

    public String getGroup_name() {
        return group_name;
    }

    public void setGroup_name(String group_name) {
        this.group_name = group_name;
    }

    @Override
    public String toString() {
        return "UserNovel{" +
                "id=" + id +
                ", user_id=" + user_id +
                ", novel_id=" + novel_id +
                ", collect_time=" + collect_time +
                ", group_name='" + group_name + '\'' +
                '}';
    }
}